package com.design.适配器模式;

public class Typec2VgaM implements Vga{

	private Phone phone;
	
	public  Typec2VgaM(Phone phone) {
		this.phone = phone;
	}
	
	@Override
	public void vgaInterface() {
		if(phone == null) {
			phone.typePhone();
			System.out.println("接收到Type-c口信息，信息转换成VGA接口中...");
            System.out.println("信息已转换成VGA接口，显示屏可以对接。");
		}
		
	}

}
